<div class="dataInnBottom">
    <div class="dataHeader">
        <h4>Marketing Tids Plan</h4>
    </div>
    <div class="clr"></div>
    <?php $this->addScriptPath('../application/views/scripts/'); ?>
    <?= $this->paginationControl($this->paginator, 'Sliding', 'paginator.phtml') ?>
    <div class="clr"></div>
    <table class="dataActions" width="100%" border="0" cellpadding="0" cellspacing="0" >
        <tr>
            <th>Switch</th>
            <th>Team Member Names</th>
            <th># Of Houses</th>
            <th>Progress</th>
            <th>Status</th>
<!--            <th>$$$$</th>-->
        </tr>
        <?php foreach ($this->paginator as $item) {
        $houseStats = $this->getSwitchUsersHouseStats($item['id']);

        ?>
            <tr>
                <td><?php echo $item['name'] ?></td>
                <td><?php echo $this->getSwitchUsers($item['id']); ?></td>
                <td><?php echo $houseStats['total_houses']; ?></td>
                <td><?php echo ($houseStats['total_houses'])?(($houseStats['total_reached']/$houseStats['total_houses'])*100 .' %'):'0 %' ?></td>
                <td><?php echo $item['status'] ?></td>
<!--                <td><?php //echo $houseStats['total_houses']-$houseStats['total_reached'] .' more houses and make '. ($houseStats['total_houses']-$houseStats['total_reached'])*$item['contract_price']*$houseStats['commission']/100 ?></td>-->
            </tr>
        <?php } ?>
    </table>
</div>